.class Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;
.super Lcom/burstly/lib/util/SafeRunnable;
.source "RewardsView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->openUrlModal(Ljava/lang/String;Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

.field final synthetic val$showNavigationControls:Z

.field final synthetic val$url:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Ljava/lang/String;Z)V
    .locals 0
    .parameter
    .parameter "x0"
    .parameter
    .parameter

    .prologue
    .line 448
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iput-object p3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->val$url:Ljava/lang/String;

    iput-boolean p4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->val$showNavigationControls:Z

    invoke-direct {p0, p2}, Lcom/burstly/lib/util/SafeRunnable;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    return-void
.end method


# virtual methods
.method public doRun()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 452
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Executing \'openUrlModal\' {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->val$url:Ljava/lang/String;

    aput-object v5, v4, v6

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 453
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->val$url:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-nez v1, :cond_0

    .line 455
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->val$url:Ljava/lang/String;

    iget-boolean v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->val$showNavigationControls:Z

    invoke-direct {v2, v3, v4, v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;-><init>(Landroid/content/Context;Ljava/lang/String;Z)V

    iput-object v2, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    .line 456
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->setCloseListener(Landroid/view/View$OnClickListener;)V

    .line 457
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->getRewardsView()Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getHostingOverlay()Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setHostingOverlay(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;)V

    .line 458
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->getRewardsView()Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setParentRewardsView(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)V

    .line 459
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v0

    .line 460
    .local v0, fillparentVal:I
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v2, v0, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 461
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 462
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v2, "browserOpened"

    new-array v3, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 466
    .end local v0           #fillparentVal:I
    :goto_0
    return-void

    .line 464
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v2, "browserCouldNotBeOpened"

    new-array v3, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_0
.end method
